package com.cx.webpay.util;
/**
 * errorcode-msg 枚举
 */
public enum ResultEnum {
	/**成功处理*/
	RESULT_SUCCESS(200,"处理成功"),
	/**处理业务失败*/
	RESULT_ERROR(500,"处理错误"),
	/**参数验证失败*/
	PARAM_ERROR(501,"参数错误"),
	
	/**mq消息处理*/
	SEND_ERROR(601,"发送失败"),
	CONSUME_ERROR(602,"发送失败");
	
	/**返回编码*/
	private int code;
	/**返回描述*/
	private String value;
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	ResultEnum(int code,String value){
		this.code=code;
		this.value=value;
	}
}
